/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.PassengerInfo;

public interface PassengerInfoDao extends Dao {

    /**
     * Retrieves all of the passengerInfos
     */
    public List getPassengerInfos(PassengerInfo passengerInfo);

    /**
     * Gets passengerInfo's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the passengerInfo's id
     * @return passengerInfo populated passengerInfo object
     */
    public PassengerInfo getPassengerInfo(final Integer id);

    /**
     * Saves a passengerInfo's information
     * @param passengerInfo the object to be saved
     */    
    public void savePassengerInfo(PassengerInfo passengerInfo);

    /**
     * Removes a passengerInfo from the database by id
     * @param id the passengerInfo's id
     */
    public void removePassengerInfo(PassengerInfo passengerInfo);
}

